<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改供应商</title>
    <script type="application/javascript" th:src="@{/layui/layui.js}"></script>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
</head>
<body>
<p th:text="${msg}"></p>
<form class="layui-form" action="/provider/updateProvider" method="post">
    <div class="layui-form-item">
        <input type="hidden" name="id" th:value="${provider.getId()}">
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">供应商编码</label>
        <div class="layui-input-block">
            <input type="text" name="proCode" lay-verify="required" placeholder="供应商编码" autocomplete="off" class="layui-input" th:value="${provider.getProCode()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">供应商名称</label>
        <div class="layui-input-block">
            <input type="text" name="proName" lay-verify="required" placeholder="供应商名称" autocomplete="off" class="layui-input" th:value="${provider.getProName()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">供应商描述</label>
        <div class="layui-input-block">
            <textarea name="proDesc" required lay-verify="required" placeholder="供应商描述" class="layui-textarea">[[${provider.getProDesc()}]]</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系人</label>
        <div class="layui-input-block">
            <input type="text" name="proContact" lay-verify="required" placeholder="请填入真实姓名" autocomplete="off" class="layui-input" th:value="${provider.getProContact()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <input type="text" name="proPhone" lay-verify="required" placeholder="十一位手机号" autocomplete="off" class="layui-input" th:value="${provider.getProPhone()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Email</label>
        <div class="layui-input-block">
            <input type="text" name="proEmail" lay-verify="required" placeholder="邮箱" autocomplete="off" class="layui-input" th:value="${provider.getProEmail()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">供应商地址</label>
        <div class="layui-input-block">
            <input type="text" name="proAddress" lay-verify="required" placeholder="供应商地址" autocomplete="off" class="layui-input" th:value="${provider.getProAddress()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">供应商传真</label>
        <div class="layui-input-block">
            <input type="text" name="proFax" lay-verify="required" placeholder="供应商传真" autocomplete="off" class="layui-input" th:value="${provider.getProFax()}">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
</html>